package org.example.myleet.p710;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) {
//        Solution solution = new Solution(10, new int[]{2,3,4,5});
//        Solution solution = new Solution(5, new int[]{2,1,0});
//        Solution solution = new Solution(1000000000, new int[]{640145908});
//        Solution solution = new Solution(2, new int[]{1});
//        Solution solution = new Solution(2, new int[]{0});
        Solution solution = new Solution(3, new int[]{2});
        Map<Integer, Integer> numberCount = new HashMap<>();
        for (int i = 0; i < 10000; ++i) {
            int p = solution.pick();
            numberCount.put(p, numberCount.getOrDefault(p, 0) + 1);
        }
        System.out.println(numberCount);
    }
}
